from datetime import time

from libs.yuntongxun.sms import CCP

from celery_tasks.main import app


@app.task(bind=True, name="send_sms_code")
def Sendsms(mobile,sms_code):
    for i in range(0, 10):
        time.sleep(1)
    # CCP().send_template_sms(mobile, [sms_code, 5], 1)